package com.lovo.movie.remoteController;

import com.lovo.movie.dao.IMovieDao;
import com.lovo.movie.entity.MovieEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
class MovieRemoteController {
    @Autowired
    private IMovieDao movieDao;
    @GetMapping("movieList")
    public List<MovieEntity> movieList(){
        int i=1/0;
      return   movieDao.findAllByTag(0);
    }
}
